
<html>
<head>
<meta charset="UTF-8">
<title>条目关系详情</title>
<link href="../../static/easyui/themes/bootstrap/easyui.css" rel="stylesheet" type="text/css"/>
<link href="../../static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
<link href="../../static/css/esaas-easyui-view.css" rel="stylesheet" type="text/css"/>
<script src="../../static/easyui/jquery.min.js" type="text/javascript"></script>
<script src="../../static/easyui/jquery.easyui.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../static/easyui/locale/easyui-lang-zh_CN.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.util.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.jquery.ajax.js" type="text/javascript"></script>
<script src="../../static/plugin/assets/jslib.easyui.util.js" type="text/javascript"></script>
<script src="../../ffres/dict/all.js"></script>
<a href="" target="_blank" id="commonLink" name="commonLink"></a>
</head>
<body class="easyui-layout">
<div data-options="region:'center',title:''" >
	<div id="tt" class="easyui-tabs" fit="true" border="false">
	<div title="数据条目信息" style="padding:0px" border="false" fit="true">
	    <form id="ff" method="post">
	    	<br>
	    	<table class="esaas-info-view-table">
	    		<tr>
	    			<td width="15%" align="right">条目标识：</td>
	    			<td width="35%"><input class="easyui-textbox" type="text" name="itemId" disabled data-options="required:true" style="width:100%;height:25px;"></input></td>
	    			<td></td><td></td>
	    		</tr>	    	
	    		<tr>
	    			<td width="15%" align="right">条目代码：</td>
	    			<td width="35%"><input class="easyui-textbox" type="text" name="itemCode" disabled data-options="required:true" style="width:100%;height:25px;"></input></td>
	    			<td width="15%" align="right">条目名称：</td>
	    			<td width="35%">
	    				<input class="easyui-textbox" type="text" name="itemName" disabled data-options="required:true" style="width:100%;height:25px;"></input>
	    				<input type="hidden" name="itemId"></input>
	    				<input type="hidden" name="orderValue">
	    			</td>	    			
	    		</tr>
	    		<tr>
	    			<td width="15%" align="right" valign="top">条目描述：</td>
	    			<td colspan="3">
	    				<textarea name="itemRemarks" id="itemRemarks" disabled class="easyui-validatebox" style="overflow-x:hidden;height:60px;width:98.5%;"></textarea>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td width="15%" align="right">数据类型：</td>
	    			<td colspan="3"><select class="easyui-combobox" disabled id="itemDataType" name="itemDataType" style="width:41%;height:25px;" data-options="editable:false,valueField:'enname',textField:'cnname',data:PUB_DATA_TYPE"></select></td>
	    		</tr>  		
	    		<tr>
	    			<td width="15%" align="right">数据长度：</td>
	    			<td><input class="easyui-textbox" type="text" disabled id="itemDataLength" name="itemDataLength" style="width:100%;height:25px;"/></td>
	    			<td width="15%" align="right">数据精度：</td>
	    			<td><input class="easyui-numberbox" type="text" disabled id="itemDataPrecision" name="itemDataPrecision" style="width:100%;height:25px;"/></td>	    			
	    		</tr>
	    		<tr>
	    			<td width="15%" align="right">数据选项：</td>
	    			<td>
	    			<input type="hidden" name="dictId" id="dictId"></input>
	    			<input class="easyui-textbox" id="dictCode" disabled name="dictCode" style="width:70%;height:25px;"/>	    			
	    			</td>
	    			<td></td>
	    			<td></td>
	    		</tr>
				<tr>
					<td width="15%" align="right">创建人：</td>
					<td width="35%"><input class="easyui-textbox" type="text" disabled
						name="createUser" data-options="required:false"
						style="width: 100%; height: 25px;"></input></td>
					<td width="15%" align="right">创建时间：</td>
					<td width="35%"><input class="easyui-textbox" type="text" disabled
						name="createTime" data-options="required:false"
						style="width: 100%; height: 25px;"></input></td>
				</tr>
				<tr>
					<td width="15%" align="right">最近修改人：</td>
					<td width="35%"><input class="easyui-textbox" type="text" disabled
						name="lastModifyUser" data-options="required:false"
						style="width: 100%; height: 25px;"></input></td>
					<td width="15%" align="right">最近修改时间：</td>
					<td width="35%"><input class="easyui-textbox" type="text" disabled
						name="lastModifyTime" data-options="required:false"
						style="width: 100%; height: 25px;"></input></td>
				</tr>
	    	</table>
	    </form>
	  </div>
	  <div title="关联选项信息" style="padding:0px" border="false" fit="true">
		<iframe id="optionFrame" name="optionFrame" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
	  </div>
	  <div title="被表模型引用明细" style="padding:0px" border="false" fit="true">
		<iframe id="byRefFrame" name="byRefFrame" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
	  </div>	  
	  </div>
</div>
<div data-options="region:'south',split:false" title="" style="width:100%;height:50px;background: #F4F4F4;">
	<div style="text-align:center;padding:10px">
		 <a href="javascript:window.parent.JLEUtil.closewin();" class="easyui-linkbutton">&nbsp;&nbsp;&nbsp;&nbsp;关&nbsp;&nbsp;&nbsp;&nbsp;闭&nbsp;&nbsp;&nbsp;&nbsp;</a>
	</div>
</div>
	<script>	
		$(function() {
			var itemId = $.getUrlParam('itemId');
			$.restfulGet('../../api/dict/item/info/' + itemId,null,function(data){
					$('#ff').form('load', {
						itemId : data.rows.itemId,
						itemCode : data.rows.itemCode,
						itemName : data.rows.itemName,
						itemDataLength : data.rows.itemDataLength,
						itemDataPrecision : data.rows.itemDataPrecision,
						orderValue : data.rows.orderValue,
						refCount : data.rows.refCount,
						dictId : data.rows.dictId,
						dictCode : data.rows.dictCode,
						subjectId : data.rows.subjectId,
						itemRemarks : data.rows.itemRemarks,
						createUser : data.rows.createUser,
						createTime : data.rows.createTime,
						lastModifyUser : data.rows.lastModifyUser,
						lastModifyTime : data.rows.lastModifyTime
					});
					if(!data.rows.dictId){						
						var optionTab = $('#tt').tabs('getTab',"关联选项信息").panel('options').tab;
						optionTab.hide();	
					} else{
						$('#optionFrame').attr('src','DictOptionInfoForItem.html?dictId=' + data.rows.dictId);
					}
			});			
			$('#byRefFrame').attr('src','DictItemInfoByRef.html?itemId=' + itemId);
		});
		function closeForm(){
			window.parent.JLEUtil.closewin();
		}
	</script>
</body>
</html>
